Skip to content

Add dynamic service support#5

Merged
MrCreosote merged 1 commit intomainfrom
dev-client
Oct 29, 2025
Merged

Add dynamic service support#5
MrCreosote merged 1 commit intomainfrom
dev-client

Conversation

@MrCreosote
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Oct 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.75%. Comparing base (dc8ebc4) to head (d146ba5).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main       #5      +/-   ##
==========================================
+ Coverage   96.15%   97.75%   +1.59%     
==========================================
  Files           1        1              
  Lines          78       89      +11     
==========================================
+ Hits           75       87      +12     
+ Misses          3        2       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment on lines +158 to +162
service_status_ret = self._call(
self.url, "ServiceWizard.get_service_status",
[{"module_name": service, "version": service_version}]
)
return service_status_ret["url"]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a direct port from the baseclient in the SDK, but looking at this now, it's be a good idea to put a ~1 min LRU cache around this part of the method at some point.

Comment on lines +233 to +237
assert res == {
'git_url': 'https://github.com/kbaseapps/HTMLFileSetServ',
'message': '',
'state': 'OK',
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are these live calls or is there some mocking machinery hidden elsewhere in the file?

Highly recommend vcrpy for testing against external services without having to test against external services.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They're live calls. I'd much rather test against a real service than a mock, especially when it's relatively easy like this case

@MrCreosote MrCreosote merged commit 8de6e2b into main Oct 29, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants